/*
 * @Author: shengduiliang 1107722390@qq.com
 * @Date: 2024-05-04 16:11:17
 * @LastEditors: shengduiliang 1107722390@qq.com
 * @LastEditTime: 2024-05-05 23:33:22
 * @FilePath: /treasure/src/ui-components/card/index.tsx
 * @Description: 卡片组件
 */
import { View, ViewProps } from '@tarojs/components'
import classNames from 'classnames'
import './index.scss'


export interface CardProps extends ViewProps {
  padding?: Boolean
}

const Card = (props: CardProps) => {
  return (
    <View
      {...props}
      className={classNames('card m-normal bg-primary border-radius-medium overflow-hidden', props.padding ? 'p-normal' : '', props.className)}
    />
  )
}

export default Card